package com.tong.hao.common.baomidou.ac.entity;

import java.math.BigDecimal;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 账单记录表
 * </p>
 *
 * @author 彤彤
 * @since 2020-05-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class AcBillFlow implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 内部主键
     */
    @TableId("inner_key")
    private String innerKey;

    /**
     * 用户编号(取值为ac_user.inner_num)
     */
    @TableField("user_key")
    private String userKey;

    /**
     * 账单日期
     */
    @TableField("ac_date")
    private LocalDate acDate;

    /**
     * 账单类别编号(参见ac_bill_class.bill_id)
     */
    @TableField("bill_class_id")
    private String billClassId;

    /**
     * 账单类型编号(参见ac_bill_category.bill_id)
     */
    @TableField("bill_category_id")
    private String billCategoryId;

    /**
     * 转入账户类型编号(参见ac_account_class.account_id)
     */
    @TableField("account_in_id")
    private String accountInId;

    /**
     * 转出账户类型编号(参见ac_account_class.account_id)
     */
    @TableField("account_out_id")
    private String accountOutId;

    /**
     * 账单金额(元)
     */
    @TableField("ac_amount")
    private BigDecimal acAmount;


}
